module.exports = {
  // 开启源码映射，用于调试代码
  configureWebpack: {
    devtool: 'source-map',
  },
  pluginOptions: {
    electronBuilder: {
      preload: 'src/preload.js',
      builderOptions: {
        appId: 'com.zhxlp.VueElectronDemo',
        productName: 'VueElectronDemo',
        copyright: 'Copyright (c) 2021 zhxlp',
        win: {
          icon: 'build/icon.ico',
          target: [
            {
              target: 'portable',
              arch: [
                // 'x64',
                'ia32',
              ],
            },
            // {
            //   target: 'nsis',
            //   arch: [
            //     'x64',
            //     'ia32'
            //   ],
            // },
          ],
        },
      },
    },
  },
};
